import { Controller, Get, Injectable, Query, Body } from '@nestjs/common';
import { UserService } from './user.service';

@Controller('user')
@Injectable()
export class UserController {
  constructor(private readonly userService: UserService) {}
  /**
   * @returns 列表
   */
  @Get('modelConversion')
  modelConversion() {
    return this.userService.convertFile(
      'C:\\Users\\admin\\Desktop\\004turbofan/1_etapa_compresor_estatores.CATPart',
      'C:\\Users\\admin\\Desktop\\top.pdv',
    );
  }

  @Get('getFile')
  getFile(@Query() fileUrl) {
    return this.userService.getFilesInFolder(fileUrl.fileUrl);
  }
}
